package com.jason.reflect.bean;

/**
 * @Author: Jason
 * @Date: 16/8/1
 * @Time: 23:19
 */
public class Person3 {

    private String name;
    private String addr;

    public String getName() {
        return name;
    }

    private void setName(String name) {
        this.name = name;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    private Person3(String name, String addr) {
        System.out.println("这是Person3的构造方法");
        this.name = name;
        this.addr = addr;
    }

    @Override
    public String toString() {
        return "Person3{" +
                "name='" + name + '\'' +
                ", addr='" + addr + '\'' +
                '}';
    }
}
